package bulk_param.controller;

import java.awt.Color;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.BorderFactory;

import bulk_param.view.Inactive_Contact_Num_View;


public class ColorErrorInactivationController implements MouseListener{
	
	private Inactive_Contact_Num_View inactive_Contact_Num_View;
	
	public ColorErrorInactivationController(Inactive_Contact_Num_View inactive_Contact_Num_View){
		this.inactive_Contact_Num_View=inactive_Contact_Num_View;
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
		if(e.getSource().equals(inactive_Contact_Num_View.txtZABPQ)){
			inactive_Contact_Num_View.txtZABPQ.setBorder(BorderFactory.createLineBorder(Color.lightGray));
		}	
		if(e.getSource().equals(inactive_Contact_Num_View.cbPays)){
			inactive_Contact_Num_View.cbPays.setBorder(BorderFactory.createLineBorder(Color.lightGray));
		}
		if(e.getSource().equals(inactive_Contact_Num_View.dateEditor)){
			inactive_Contact_Num_View.dateEditor.setBorder(BorderFactory.createLineBorder(Color.lightGray));
		}
		if(e.getSource().equals(inactive_Contact_Num_View.dateChooser)){
			inactive_Contact_Num_View.dateEditor.setBorder(BorderFactory.createLineBorder(Color.lightGray));
		}
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}
}


